package com.ssy.lingxi.transaction.repository;

import com.ssy.lingxi.transaction.entity.Quote;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
*交易中心-商品询价报价-商品询价报价单
* @author wrc
* @date 2020/7/8
*/
@Repository
public interface QuoteRepository extends JpaRepository<Quote, Long>, JpaSpecificationExecutor<Quote> {

    List<Quote> findAllByInquiryListIdEquals(Long inquiryListId);

    void deleteAllByIdIn(Set<Long> ids);

    Quote findByQuotationNoEquals(String quotationNo);

    List<Quote> findByShopIdAndMemberIdAndMemberRoleId(Long shopId, Long memberId, Long memberRoleId);
}
